import java.io.BufferedInputStream;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.math.BigInteger;
import java.util.Arrays;
import java.util.Scanner;

import org.korifey.ffalg.NumberTheory;


public class Problem13 {
	
	public static void main(String[] args) throws IOException {
		System.out.println(solve());
	}

	public static String solve() throws IOException {
		BufferedReader reader = new BufferedReader(new InputStreamReader(Problem13.class.getClassLoader().getResourceAsStream("Problem13.in")));
		String s;
		BigInteger acc = BigInteger.ZERO;
		while ((s = reader.readLine()) != null) {
			acc = acc.add(new BigInteger(s));
		}
		return acc.toString().substring(0, 10);
	}
	
}
